package com.example.neutonote2.data.model;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 标签实体类
 */
@Entity(tableName = "tags")
public class Tag {
    @PrimaryKey(autoGenerate = true)
    private int id;
    
    private String name; // 标签名称
    private String color; // 标签颜色(十六进制)

    public Tag(String name, String color) {
        this.name = name;
        this.color = color;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
} 